package com.yejiali.backend.ws;

import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.util.Date;

/**
 * @Author:yejiali
 * @Date:2025/8/19-08-19-10:11
 * @Decsription:com.yejiali.backend.ws
 * @Version:1.0
 */
@Component
public class Send {
    @Resource
    private WebSocketServer webSocketServer;

//    @Scheduled(fixedDelay = 10000)
//    public void sendMsg() throws IOException {
//        webSocketServer.sendAllMessage("Websocket发送消息时间：" + new Date());
//    }

}
